//
//  ForumTableCell.m
//  diaoyuren
//
//  Created by 钓鱼人 on 16/3/28.
//  Copyright © 2016年 game. All rights reserved.
//

#import "ForumTableCell.h"
#import "UIImageView+WebCache.h"
@interface ForumTableCell ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imageWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imageHight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *enterHeight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *enterWidth;
@end

@implementation ForumTableCell

- (void)awakeFromNib {
    self.selectionStyle = 0;
    
    
    self.imageHight.constant = SCREEN_HEIGHT*0.07;
    self.imageWidth.constant = SCREEN_HEIGHT*0.07;
    
    
}

-(void)setModel:(ForumMenuModel *)model{

    _model= model;
    
    
    [self.image sd_setImageWithURL:[NSURL URLWithString:_model.icon_2x]];
    if (kDIEIsIPhone6P) {
        [self.image sd_setImageWithURL:[NSURL URLWithString:_model.icon_3x]];
    }    
    self.title.text = _model.name;
    self.descriLable.text = _model.desc;
    
    self.forum_id = _model.forum_id;

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

  
}

@end
